import http from '@/axios/index.js'

// 查询角色下拉框
export const queryRoleSelectReq = () => {
    return http.get('/sys/role/query/select');
}

// 查询列表
export const querySelectiveReq = (pageNum,pageSize,data) => {
    return http.post('/sys/role/list?pageNum='+pageNum+"&pageSize="+pageSize,data);
}

// 删除
export const deleteReq = (ids) => {
    return http.post('/sys/role/delete',ids);
}

// 添加
export const addReq = (data) => {
    return http.post('/sys/role/add',data);
}

// 修改
export const updateReq = (data) => {
    return http.put('/sys/role/update',data);
}

// 通过roleId查询permIds
export const queryPermIdsReq = (roleId) => {
    return http.get('/sys/role/queryPermIds/'+roleId);
}